package com.ecust.Dao.User;


import com.ecust.Entity.User.User;

import java.util.Date;
import  java.util.List;

/**
 * Created by admin on 2017/4/29.
 * @Description: User访问数据库的接口
 *@author mengweiqiang
 */

public interface UserDao {

    /**
     * 通过lUserID,userPwd,RoleID判断用户是否登录成功
     * @param UserID,userPwd,RoleID
     * @return boolean值，true表示登录成功,false表示登录失败
     * @author mengweiqiang
     */
    public boolean FindUser(String UserID,String UserPwd,String RoleID);


    /**
     * 通过UserID获取User对象的所有信息
     * @param UserID
     * @return User对象，不为null即返回成功
     * @author mengweiqiang
     */
    public List<User> FindUserInfo(String UserID);

    /**
     * 通过UserID获取User对象的密码信息
     * @param UserID,UserPwd
     * @return  boolean值，true为真，false为假
     * @author mengweiqiang
     */
    public boolean CheckUserPassword(String UserID,String UserPwd);

    /**
     * 通过UserID更改密码
     * @param UserID,NewPassword
     * @return  boolean值，true更改为真，false为假
     * @author mengweiqiang
     */
    public boolean ChangeUserPassword(String UserID,String NewPassword);


    /**
     * 通过UserID更改User对象信息
     * @param UserID,UseName,Name,Gender,DateOfBirth,TelPhone,Email,Company
     * @return  boolean值，true更改为真，false为假
     * @author mengweiqiang
     */
    public boolean ChangeUserInfo(String UserID, String UserName, String Name, int Gender, Date DateOfBirth,String TelPhone,String Email,String Company);


}
